<div class="swiper-container adv-container"  style="background:{$diyitem['style']['bgcolor']};padding-top:{$diyitem['style']['margintop']}px;padding-bottom:{$diyitem['style']['marginbottom']}px">
    <div class="swiper-wrapper">
        {loop $advs $adv}
        <div class="swiper-slide adv-slide no-swiper" style="background:{$diyitem['style']['bgcolor']}">
            <a href="{php echo empty($adv['link'])?'#':$adv['link']}" style="background:{$diyitem['style']['bgcolor']}">
                <img src="{$adv['thumb']}"/>
            </a>
        </div>
        {/loop}
    </div>
</div>